package org.zlpt.entity.co;

import lombok.Data;
import org.hyperledger.fabric.contract.annotation.DataType;
import org.hyperledger.fabric.contract.annotation.Property;

@Data
@DataType
public final class AuthenticationCO {
    // 移动端用户

    public static final String keyPrefiex = "sys_authentication:";

    // 用户id
    @Property
    private Long userId;
    // 真实姓名
    @Property
    private String realName;
    // 身份证正面url
    @Property
    private String idCardFrontUrl;
    // 身份证背面url
    @Property
    private String idCardBackUrl;
    // txid
    @Property
    private String txid;

    public String formKey() {
        return keyPrefiex + userId;
    }
    public static String formKey(Long userId) {
        return keyPrefiex + userId;
    }

}
